package org.example.observer.observer2;

import java.util.Observer;

public class Client {
    public static void main(String[] args) {
        Observer lisi=new LiSi();
        HanFeiZi hanFeiZi=new HanFeiZi();
        hanFeiZi.addObserver(lisi);
        hanFeiZi.haveBreakfast();
    }
}
